package com.lancoo.ccas52.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author quin.song
 * @since 2023-03-23
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(of={"taskId","gradeId","baseMajorId","collegeId"})
@ApiModel(value = "Major对象", description = "")
public class Major implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "major_id", type = IdType.AUTO)
    private Long majorId;

    private Integer taskId;

    private String gradeId;

    @ApiModelProperty("所属年级")
    private String gradeName;

    private String baseMajorId;

    private String majorName;

    private String collegeId;

    private String collegeName;

    @ApiModelProperty("所属校区")
    private String campusId;

    private String campusName;

    @ApiModelProperty("主修学分上限")
    private Double creditLimitMain;

    @ApiModelProperty("主修课程数上限")
    private Integer courseLimitMain;

    @ApiModelProperty("辅修学分上限")
    private Double creditLimitMinor;

    @ApiModelProperty("辅修课程数上限")
    private Integer courseLimitMinor;

    @ApiModelProperty("1待设置 2已设置")
    private Integer stateLimit;

    @ApiModelProperty("1仅主修 2存在辅修")
    private Integer onlyMajor;

    @ApiModelProperty("操作状态 0未开启  1已开启")
    private Integer isEnable;


//    @TableField(exist = false)
//    @ApiModelProperty("专业选课上限id-更新学生选课上限使用")
//    private Long limitId;
//
//    @TableField(exist = false)
//    @ApiModelProperty("修读性质：1主修2辅修")
//    private Integer studyNature;
//
//    @TableField(exist = false)
//    @ApiModelProperty("学分上限")
//    private Double creditLimit;
//
//    @TableField(exist = false)
//    @ApiModelProperty("课程数上限")
//    private Integer courseLimit;
//
//    @TableField(exist = false)
//    @ApiModelProperty("1待设置 2已设置")
//    private Integer state;

}
